#include <QtGui/QApplication>
#include "nr_server_main_window.h"
#include "nr_server_config.h"

/**
 * Load the global style sheet 
 */
void load_global_style()
{
    QFile file(nr_server_config::style_file());
    file.open(QFile::ReadOnly);
    QString stype_sheet = QLatin1String(file.readAll());
    
    qApp->setStyleSheet(stype_sheet);
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    
    // Load the style files
    load_global_style();
    
    nr_server_main_window w;
    w.showMaximized();
    return a.exec();
}
